<template>
  <div class="goods-aside">
    <div class="tit">24小时热销榜</div>
    <div class="product" v-for="i in 3" :key="i + 10">
      <img :src="img1" alt="" />
      <p class="name">USB Type C数据线</p>
      <p class="desc">快速充电，稳定传输</p>
      <p class="price">¥29</p>
    </div>
    <div class="tit">专题推荐</div>
    <div class="special" v-for="i in 3" :key="i">
      <img :src="img2" alt="" />
      <p class="name">一往无前，诞生于崛起</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'goods-aside',
  data () {
    return {
      // 热榜和专题
      img1: 'http://zhoushugang.gitee.io/erabbit-client-pc-static/uploads/kitchen_goods_1.jpg',
      img2: 'http://zhoushugang.gitee.io/erabbit-client-pc-static/uploads/discuss_goods_1.jpg'
    }
  }
}
</script>

<style scoped lang='less'>
.goods-aside {
  width: 278px;
  .tit {
    width: 278px;
    height: 70px;
    background: #e26237;
    color: #fff;
    font-size: 18px;
    line-height: 70px;
    padding-left: 25px;
    margin-bottom: 10px;
  }
  .product {
    margin-bottom: 10px;
    background: #fff;
    width: 278px;
    height: 360px;
    text-align: center;
    img {
      width: 190px;
      height: 190px;
      margin-top: 25px;
    }
    .name {
      font-size: 16px;
      line-height: 40px;
    }
    .desc {
      color: #999;
      line-height: 50px;
    }
    .price {
      color: @priceColor;
      font-size: 18px;
      line-height: 50px;
    }
  }
  .special {
    background: #fff;
    text-align: center;
    margin-bottom: 10px;
    img {
      width: 278px;
      height: 212px;
    }
    .name {
      font-size: 18px;
      padding: 24px 0;
    }
  }
}
</style>
